<!--
 * @Author: guyuelong
 * @Date: 2021-09-17 14:19:44
 * @LastEditors: guyuelong
 * @LastEditTime: 2021-09-23 09:58:28
 * @Description: 封装底部组件
-->
<template>
  <div>
    <!-- 底部 -->
    <div class="footer">
      <img id="foot1" src="../assets/yxtx/foot-picture.png" alt="" />
      <div class="address">
        {{ address }}
      </div>
      <div class="copyright">
        版权所有：山西农业大学 晋ICP备05000473号 晋公网安备14072602000114号
      </div>
    </div>
    <!-- /底部 -->
  </div>
</template>
<script>
import { get } from "../utils/request";
export default {
  data() {
    return {
      address: "",
    };
  },
  methods: {
    loadAddress() {
      let url = "/index/findByKey";
      get(url, { name: "address" }).then((res) => {
        let data = res.data;
        if (data) {
          this.address = data.val;
        }
      });
    },
  },
  created() {
    this.loadAddress();
  },
};
</script>
<style lang="scss">
// 底部样式
.footer {
  text-align: center;
  background-color: blanchedalmond;
  #foot1 {
    width: 100%;
  }
}
</style>
